<%@ page contentType="text/html;charset=UTF-8"%>

<%@ page import="java.util.Vector,com.ejoysoft.wlanyz.business.WarnAppear,com.ejoysoft.common.Constants,com.ejoysoft.common.exception.NoRightException" %>
<%@page import="sun.reflect.generics.tree.IntSignature"%>
<%@page import="com.ejoysoft.common.Format"%>
<%@ page import="java.util.List"%>
<%@ include file="../include/jsp/head.jsp"%>

<%
	if (!globa.userSession.hasRight("10055"))
		throw new NoRightException("用户不具备操作该功能模块的权限，请与系统管理员联系！");
%>

<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";

    String checked1 =  ParamUtil.getString(request,"checkedFlag","WLAN");
    String tagContent = "tagContent0";
    int num = 0;
    if(checked1.equals("TD")){
    tagContent = "tagContent1";
    num =1;
    }
    if(checked1.equals("GSM")){
    tagContent = "tagContent2";
    num =2;
    }
    String  strStartTime = ParamUtil.getString(request,"strStartTime","");
    String  strEndTime = ParamUtil.getString(request,"strEndTime","");
    String  strCity = ParamUtil.getString(request,"strCity","");
    System.out.println(strStartTime+strEndTime+strCity+"..>>>>>>>>>>>>>>>>>>>"+checked1);
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>折线图</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	
	<style type="text/css">
	body { font-size:14px; font-family:"宋体"}
	ol li { margin:8px}
	#con { font-size:12px; width:100%; height:100%; margin:0 auto}
	#tags { height:23px; width:400px; margin:0; padding:0; margin-left:10px}
	#tags li { float:left; margin-right:1px; background:url(images/tagleft.gif) no-repeat left bottom; height:23px; list-style-type:none}
	#tags li a { text-decoration:none; float:left; background:url(images/tagright.gif) no-repeat right bottom; height:23px; padding:0px 10px; line-height:23px; color:#999}
	#tags li.emptyTag { width:4px; background:none}
	#tags li.selectTag { background-position: left top; position:relative; height:25px; margin-bottom:-2px}
	#tags li.selectTag a { background-position: right top; color:#000; height:25px; line-height:25px;}
	#tagContent { padding:1px; background-color:#fff; border:0px solid #aecbd4;}
	.tagContent { background:url(images/bg.gif) repeat-x;  padding:10px; color:#474747; width:100%; height:100%; display:none}
	#tagContent div.selectTag{ display:block}
	</style>
	
	

  </head>
  
  <body onload="selectTag1('<%=tagContent%>', '<%=num %>')"> 
    <%

String url = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
String width = "100%";
String height = "500";
//System.out.println("url地址是："+url);
%>
<div id="con">
  <ul id="tags">
    <li class="selectTag"><a href="javascript:void(0)" onclick="selectTag('tagContent0',this)">WLAN呈现</a></li>
	<li><a href="javascript:void(0)" onclick="selectTag('tagContent1',this)">TD预警</a></li>
	<li><a href="javascript:void(0)" onclick="selectTag('tagContent2',this)">GSM预警</a></li>
  </ul> 
  <div id="tagContent">
  	<div id="tagContent0" class="tagContent selectTag"><iframe  id="iframe0" src="<%=url%>/taskmanage/piclook.jsp?strStartTime=<%=strStartTime %>&strEndTime=<%=strEndTime %>&strCity=<%=strCity %>&random=<%Math.random(); %> " width="100%" height="500"></iframe></div>
	<div id="tagContent1" class="tagContent"><iframe id="iframe1"  src="<%=url%>/taskmanage/piclook2.jsp?strStartTime=<%=strStartTime %>&strEndTime=<%=strEndTime %>&strCity=<%=strCity %>&random=<%Math.random(); %>" width="100%" height="500"></iframe></div>
	<div id="tagContent2" class="tagContent"><iframe id="iframe2"  src="<%=url%>/taskmanage/piclook3.jsp?strStartTime=<%=strStartTime %>&strEndTime=<%=strEndTime %>&strCity=<%=strCity %>&random=<%Math.random(); %>" width="100%" height="500"></iframe></div>
  </div>	
</div>
<script type="text/javascript">

function selectTag(showContent,selfObj){
	selfObj.blur();
	// 操作标签
	var tag = document.getElementById("tags").getElementsByTagName("li");
	var taglength = tag.length;
	for(i=0; i<taglength; i++){
		tag[i].className = "";
	}
	selfObj.parentNode.className = "selectTag";
	// 操作内容
	for(i=0; j=document.getElementById("tagContent"+i); i++){
		j.style.display = "none";
	}
	document.getElementById(showContent).style.display = "block";	
}

function selectTag1(showContent,inti){
	
	// 操作标签
	var tag = document.getElementById("tags").getElementsByTagName("li");
	var taglength = tag.length;
	for(i=0; i<taglength; i++){
		tag[i].className = "";
		if(inti == i)tag[i].className = "selectTag";
	}
	
	// 操作内容
	for(i=0; j=document.getElementById("tagContent"+i); i++){
			j.style.display = "none";
	}
	document.getElementById(showContent).style.display = "block";	
}

</script>
  </body>
</html>
